package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author xiaquanen
 * @version 1.0
 * @project heima-leadnews
 * @date 2024/7/21 14:28:30
 */
public interface WmMaterialService extends IService<WmMaterial> {

    /**
     * 分页查询
     *
     * @param wmMaterialDto
     * @return
     */
    ResponseResult list(WmMaterialDto wmMaterialDto);

    /**
     * 图片上传
     *
     * @param multipartFile
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);


    /**
     * 添加收藏
     *
     * @param id
     * @return
     */
    ResponseResult collect(Integer id);
}
